package com.atguigu.g_match;

public class Demo {
    public static void main(String[] args) {
        String phoneNumber = "14496566888";

        boolean flag = phoneNumber.matches("^(13[0-9]|14[5|7]|15[0|1|2|3|5|6|7|8|9]|18[0|1|2|3|5|6|7|8|9])\\d{8}$");

        System.out.println("flag = " + flag);
    }
}
